package com.springboot.code.user.controller;

import com.springboot.code.config.ApiResult;

import org.apache.tomcat.util.http.fileupload.FileItem;
import org.apache.tomcat.util.http.fileupload.IOUtils;
import org.apache.tomcat.util.http.fileupload.disk.DiskFileItemFactory;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import java.io.File;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.Files;
import java.util.Map;

/**
 * DESC:
 *
 * @author WangJie
 * @date Created in 2023-03-19 20:38
 */
@RestController
@RequestMapping("/api")
public class UserController {

    @PostMapping("/user")
    public ApiResult user(@RequestBody Map<String,String> params){
        return ApiResult.success(params);
    }




}
